<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>    
<%@taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>    

<c:forEach items="${lessonList}" var="lesson">
	 <c:if test="${'ios'==os}">
	 	<div class="flex-layout" onclick="fn_courseDetail(${lesson.id })">
	 </c:if>
     <c:if test="${'wechat'==os ||'web'==os}">	
     	<div class="flex-layout" id='{"name":"courseDetail","params":{"id":${lesson.id}}}'>
     </c:if>
   	 <c:if test="${'android'==os}">
   	 	<div class="flex-layout" onclick="android.startUrl('课程详情','${courseDetail_url}?id=${lesson.id}')">
   	 </c:if>
		<div class="leftarea"><img src="${lesson.img}${suffix}" alt=""></div>
		<div class="rightarea two-spot">
			<div class="content-wrap">
				<p class="guide"><span class="two-spot">${lesson.title}</span></p>
				<c:choose>
					<c:when test="${first_cat_id != null }">
						<p class="prompt one-spot">${lesson.sub_title}</p>
					</c:when>
					<c:otherwise>
						<p class="prompt one-spot">${lesson.first_cat_name}</p>
					</c:otherwise>
				</c:choose>
			</div>
		</div>
	</div>
</c:forEach>
		